<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        div{
            color: black;
        }
    </style>

    <!-- 使用scirpt标签，在里面写javascirpt代码 -->
    <script>
        alert("javascirpt hello word");
    </script>
</head>
<body>
    <div>
        JavaScript入门
    </div>
</body>
</html>